home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXttttMMMMaaaannnnaaaaggggeeeeCCCChhhhiiiillllddddrrrreeeennnn((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXttttMMMMaaaannnnaaaaggggeeeeCCCChhhhiiiillllddddrrrreeeennnn((((3333XXXXtttt))))
-
-
-
- NNNNAAAAMMMMEEEE
- XtManageChildren, XtManageChild, XtUnmanageChildren,
- XtUnmanageChild, XtChangeManagedSet, XtIsManaged - manage
- and unmanage children
-
- SSSSYYYYNNNNTTTTAAAAXXXX
- typedef Widget *WidgetList;
-
- void XtManageChildren(_c_h_i_l_d_r_e_n, _n_u_m__c_h_i_l_d_r_e_n)
- WidgetList _c_h_i_l_d_r_e_n;
- Cardinal _n_u_m__c_h_i_l_d_r_e_n;
-
- void XtManageChild(_c_h_i_l_d)
- Widget _c_h_i_l_d;
-
- void XtUnmanageChildren(_c_h_i_l_d_r_e_n, _n_u_m__c_h_i_l_d_r_e_n)
- WidgetList _c_h_i_l_d_r_e_n;
- Cardinal _n_u_m__c_h_i_l_d_r_e_n;
-
- void XtUnmanageChild(_c_h_i_l_d)
- Widget _c_h_i_l_d;
-
- void XtChangeManagedSet(_u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n,
- _n_u_m__u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n, _m_a_n_a_g_e__c_h_i_l_d_r_e_n, _n_u_m__m_a_n_a_g_e__c_h_i_l_d_r_e_n,
- _p_o_s_t__u_n_m_a_n_a_g_e__p_r_e__m_a_n_a_g_e__h_o_o_k, _c_l_i_e_n_t__d_a_t_a)
- WidgetList _u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n;
- Cardinal _n_u_m__u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n;
- WidgetList _m_a_n_a_g_e__c_h_i_l_d_r_e_n;
- Cardinal _n_u_m__m_a_n_a_g_e__c_h_i_l_d_r_e_n;
- XtCSMProc _p_o_s_t__u_n_m_a_n_a_g_e__p_r_e__m_a_n_a_g_e__h_o_o_k;
- XtPointer _c_l_i_e_n_t__d_a_t_a;
-
- Boolean XtIsManaged(_w_i_d_g_e_t)
- Widget _w_i_d_g_e_t
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- _c_h_i_l_d Specifies the child.
-
- _c_h_i_l_d_r_e_n Specifies a list of child widgets.
-
- _n_u_m__c_h_i_l_d_r_e_n
- Specifies the number of children.
-
- _w_i_d_g_e_t Specifies the widget.
-
- _m_a_n_a_g_e__c_h_i_l_d_r_e_n
- Specifies the list of widget children to add to
- the managed set.
-
- _n_u_m__m_a_n_a_g_e__c_h_i_l_d_r_e_n
- Specifies the number of entries in the
- manage_children list.
-
-
-
- Page 1 (printed 10/3/02)
-
-
-
-
-
-
- XXXXttttMMMMaaaannnnaaaaggggeeeeCCCChhhhiiiillllddddrrrreeeennnn((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXttttMMMMaaaannnnaaaaggggeeeeCCCChhhhiiiillllddddrrrreeeennnn((((3333XXXXtttt))))
-
-
-
- _u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n
- Specifies the list of widget children to remove
- from the managed set.
-
- _n_u_m__u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n
- Specifies the number of entries in the
- unmanage_children list.
-
- _p_o_s_t__u_n_m_a_n_a_g_e__p_r_e__m_a_n_a_g_e__h_o_o_k
- Specifies the post unmanage, pre manage hook
- procedure to invoke.
-
- _c_l_i_e_n_t__d_a_t_a
- Specifies the client data to be passed to the hook
- precedure.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _X_t_M_a_n_a_g_e_C_h_i_l_d_r_e_n function performs the following:
-
- +o Issues an error if the children do not all have the
- same parent or if the parent is not a subclass of
- _c_o_m_p_o_s_i_t_e_W_i_d_g_e_t_C_l_a_s_s.
-
- +o Returns immediately if the common parent is being
- destroyed; otherwise, for each unique child on the
- list, _X_t_M_a_n_a_g_e_C_h_i_l_d_r_e_n ignores the child if it already
- is managed or is being destroyed and marks it if not.
-
- +o If the parent is realized and after all children have
- been marked, it makes some of the newly managed
- children viewable:
-
- - Calls the change_managed routine of the widgets'
- parent.
-
- - Calls _X_t_R_e_a_l_i_z_e_W_i_d_g_e_t on each previously unmanaged
- child that is unrealized.
-
- - Maps each previously unmanaged child that has
- map_when_managed _T_r_u_e.
-
- Managing children is independent of the ordering of children
- and independent of creating and deleting children. The
- layout routine of the parent should consider children whose
- managed field is _T_r_u_e and should ignore all other children.
- Note that some composite widgets, especially fixed boxes,
- call _X_t_M_a_n_a_g_e_C_h_i_l_d from their insert_child procedure.
-
- If the parent widget is realized, its change_managed
- procedure is called to notify it that its set of managed
- children has changed. The parent can reposition and resize
- any of its children. It moves each child as needed by
-
-
-
- Page 2 (printed 10/3/02)
-
-
-
-
-
-
- XXXXttttMMMMaaaannnnaaaaggggeeeeCCCChhhhiiiillllddddrrrreeeennnn((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXttttMMMMaaaannnnaaaaggggeeeeCCCChhhhiiiillllddddrrrreeeennnn((((3333XXXXtttt))))
-
-
-
- calling _X_t_M_o_v_e_W_i_d_g_e_t, which first updates the x and y fields
- and then calls _X_M_o_v_e_W_i_n_d_o_w if the widget is realized.
-
- The _X_t_M_a_n_a_g_e_C_h_i_l_d function constructs a _W_i_d_g_e_t_L_i_s_t of length
- one and calls _X_t_M_a_n_a_g_e_C_h_i_l_d_r_e_n.
-
- The _X_t_U_n_m_a_n_a_g_e_C_h_i_l_d_r_e_n function performs the following:
-
- +o Issues an error if the children do not all have the
- same parent or if the parent is not a subclass of
- _c_o_m_p_o_s_i_t_e_W_i_d_g_e_t_C_l_a_s_s.
-
- +o Returns immediately if the common parent is being
- destroyed; otherwise, for each unique child on the
- list, _X_t_U_n_m_a_n_a_g_e_C_h_i_l_d_r_e_n performs the following:
-
- - Ignores the child if it already is unmanaged or is
- being destroyed and marks it if not.
-
- - If the child is realized, it makes it nonvisible
- by unmapping it.
-
- +o Calls the change_managed routine of the widgets' parent
- after all children have been marked if the parent is
- realized.
-
- _X_t_U_n_m_a_n_a_g_e_C_h_i_l_d_r_e_n does not destroy the children widgets.
- Removing widgets from a parent's managed set is often a
- temporary banishment, and, some time later, you may manage
- the children again.
-
- The _X_t_U_n_m_a_n_a_g_e_C_h_i_l_d function constructs a widget list of
- length one and calls _X_t_U_n_m_a_n_a_g_e_C_h_i_l_d_r_e_n.
-
- The _X_t_C_h_a_n_g_e_M_a_n_a_g_e_d_S_e_t function performs the following:
-
- +o Issues an error if the widgets specified in the
- _m_a_n_a_g_e__c_h_i_l_d_r_e_n and the _u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n lists to no
- all have the same parent, or if that parent is not a
- subclass of compositeWidgetClass.
-
- +o Returns immediately if the common parent is being
- destroyed.
-
- +o If no _C_o_m_p_o_s_i_t_e_C_l_a_s_s_E_x_t_e_n_s_i_o_n is defined, or a
- _C_o_m_p_o_s_i_t_e_C_l_a_s_s_E_x_t_e_n_s_i_o_n is defined but with an
- _a_l_l_o_w_s__c_h_a_n_g_e__m_a_n_a_g_e_d__s_e_t field with a value of _F_a_l_s_e,
- and _X_t_C_h_a_n_g_e_M_a_n_a_g_e_d_S_e_t was invoked with a non-NULL
- _p_o_s_t__u_n_m_a_n_a_g_e__p_r_e__m_a_n_a_g_e__h_o_o_k procedure then
- _X_t_C_h_a_n_g_e_M_a_n_a_g_e_d_S_e_t performs the following:
-
- - Calls _X_t_U_n_m_a_n_a_g_e_C_h_i_l_d_r_e_n (_u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n,
-
-
-
- Page 3 (printed 10/3/02)
-
-
-
-
-
-
- XXXXttttMMMMaaaannnnaaaaggggeeeeCCCChhhhiiiillllddddrrrreeeennnn((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXttttMMMMaaaannnnaaaaggggeeeeCCCChhhhiiiillllddddrrrreeeennnn((((3333XXXXtttt))))
-
-
-
- _n_u_m__u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n).
-
- - Calls the _p_o_s_t__u_n_m_a_n_a_g_e__p_r_e__m_a_n_a_g_e__h_o_o_k specified.
-
- - Calls _X_t_M_a_n_a_g_e_C_h_i_l_d_r_e_n (_m_a_n_a_g_e__c_h_i_l_d_r_e_n,
- _n_u_m__m_a_n_a_g_e__c_h_i_l_d_r_e_n) and then returns immediately.
-
- +o Otherwise, if a _C_o_m_p_o_s_i_t_e_C_l_a_s_s_E_x_t_e_n_s_i_o_n is defined with
- an _a_l_l_o_w_s__c_h_a_n_g_e__m_a_n_a_g_e_d__s_e_t field with a value of
- _T_r_u_e, or if no _C_o_m_p_o_s_i_t_e_C_l_a_s_s_E_x_t_e_n_s_i_o_n is defined, and
- _X_t_C_h_a_n_g_e_M_a_n_a_g_e_d_S_e_twas _p_o_s_t__u_n_m_a_n_a_g_e__p_r_e__m_a_n_a_g_e__h_o_o_k
- procedure, then the following is performed:
-
- - For each child on the _u_n_m_a_n_a_g_e__c_h_i_l_d_r_e_n list; if
- the child is already unmanaged or is being
- destroyed it is ignored, otherwise it is marked as
- being unmanaged and if it is realized it is made
- nonvisible by being unmapped.
-
- - If the _p_o_s_t__u_n_m_a_n_a_g_e__p_r_e__m_a_n_a_g_e__h_o_o_k procdedure is
- non-NULL then it is invoked as specified.
-
- - For each child on the _m_a_n_a_g_e__c_h_i_l_d_r_e_n list; if the
- child is already managed or it is being destroyed
- it is ignored, otherwise it is marked as managed
-
- +o If the parent is realized and after all children have
- been marked, the change_managed method of the parent is
- invoked and subsequently some of the newly managed
- children are made viewable by:
-
- - Calling _X_t_R_e_a_l_i_z_e_W_i_d_g_e_t on each of the previously
- unmanaged child that is unrealized.
-
- - Mapping each previously unmanaged child that has
- _m_a_p__w_h_e_n__m_a_n_a_g_e_d _T_r_u_e.
-
- The _X_t_I_s_M_a_n_a_g_e_d function returns _T_r_u_e if the specified
- widget is of class RectObj or any subclass thereof and is
- managed, or _F_a_l_s_e otherwise.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- XtMapWidget(3Xt), XtRealizeWidget(3Xt)
- _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
- _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 10/3/02)
-
-
-
-